package com.example.sale_order.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.sale_order.entity.Order;
import com.example.sale_order.service.SaleOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.security.KeyStore;

/**
 * @Author: 杨宏杰
 * @QQ： 1025082421
 * @CreateTime: 2020-08-27-09-33
 * @Descirption:
 */
@CrossOrigin
@RestController
@RequestMapping("saleorder")
public class SaleOrderController {
    @Autowired
    private SaleOrderService saleOrder;
    @RequestMapping("insertsaleorder")
    public void insertSaleOrder(Order order){
        System.out.println("AAA="+JSONObject.toJSONString(order));
        saleOrder.insertSaleOrder(order);

    }
    @RequestMapping("doback")
    public void doBack(){
        System.out.println("驳回");
    }

}
